package com.cory.admin.sys.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cory.admin.sys.domain.entity.SysRoleResource;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xc
 * @since 2019-02-23
 */
public interface SysRoleResourceMapper extends BaseMapper<SysRoleResource> {
    
    @Select("select resource_id from sys_role_resource where role_id = #{roleId}")
    List<Integer> selectRoleResourceIds(Integer roleId);
    
}
